﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entities;
using Datalayer;
using Common;
using System.Data;

namespace Portal_KonTum.Control
{
    public partial class So_Ban_Nganh : System.Web.UI.UserControl
    {
        IQueryMgr iq;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BinData();
            }
        }
        void BinData()
        {
            List<Depart> ex = new List<Depart>();
            iq = QueryMgr.GetDbInstance();

            ex = iq.Dep_GetAllDepart();
            DataList1.DataSource = (ex);
            DataList1.DataBind();
        }
    }
}